<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/7
 * Time: 16:13
 */

/** =======================================登录======================================= */
Route::post('login', 'LoginController@login');                              // 登录
Route::post('updatepasw', 'UserController@Updatepassword');                 // 修改密码
Route::post('ForgetPpassword', 'LoginController@ForgetPpassword');          // 忘记密码
Route::post('registerSms', 'LoginController@registerSms');                  // 发送验证码
Route::post('checksmscode', 'LoginController@check_smscode');               // 验证码检测

Route::any('musictype', 'MediaController@MusicType');                       // 音乐类别
Route::any('index_getWapToken', 'MediaController@getWapUploadToken');       // 获取网页端OSS上传token
Route::any('comment', 'MediaController@getComment');                        // 视频评论列表
Route::any('tagslist', 'TagsController@index');                             // 标签栏目列表
Route::any('reportlist', 'SystemController@Reporttype');                    // 举报栏目列表
Route::any('branchlist', 'BranchController@index');                         // 分公司列表
Route::any('role', 'AdminController@roleList');                             // 角色列表
Route::any('get_GroupSMSUserType', 'SystemController@GroupSMSUserType');    // 获取群发短信对象
Route::any('logout', 'CommonController@logout');                            // 登出
Route::any('choiceBranch', 'BranchController@ChoiceBranch');                // 分公司选择
Route::any('loweruser', 'UserController@LowerUser');                        // 管理员的下级用户账号

Route::middleware(['apiSignVerify', 'adminToken', 'checkPermissions'])->group(function(){
    /** ================================ 权限管理 ==================================== */
    Route::any('addrole', 'AdminController@AddRole');                       // 添加角色
    Route::post('editRole', 'AdminController@editRolePermission');          // 编辑角色及权限
    Route::any('permission', 'AdminController@permissionList');             // 权限列表
    Route::any('getRoleDetails', 'AdminController@getRoleDetails');         // 权限列表

    /** ==============================管理员管理========================================= */
    Route::any('managerlist', 'ManageController@index');                    // 管理列表
    Route::any('Adminadduser', 'ManageController@AddUser');                 // 添加管理员
    Route::any('modifyuser', 'ManageController@ModifyUser');                // 修改管理员
    Route::any('delmanage', 'ManageController@DelManage');                  // 删除管理员
    Route::any('ManageDetails', 'ManageController@ManageDetails');          // 管理员详情
    Route::any('settlement_admini_list', 'ManageController@ManagerList');   //结算管理员下拉列表

    /** ===================================视频管理======================================== */
    Route::any('report', 'MediaController@getReport');                      // 视频举报列表
    Route::any('reportdetails', 'MediaController@ReportDetails');           // 视频举报详情
    Route::any('delreport', 'MediaController@DelReport');                   // 视频举报删除
    Route::any('media', 'MediaController@mediaList');                       // 媒体列表
    Route::any('details', 'MediaController@details');                       // 视频详情
    Route::any('mediaedit', 'MediaController@MediaEdit');                   // 视频编辑
    Route::any('checkupmedia', 'MediaController@checkupList');              // 待审核视频列表
    Route::any('notthrough', 'MediaController@NotThrough');                 // 审核不通过视频列表
    Route::post('verify', 'MediaController@changeStatus');                  // 审核视频
    Route::any('enablemedia', 'MediaController@MediaEnable');               // 视频启用禁用
    Route::post('deleteComment', 'MediaController@deleteComment');          // 删除评论
    Route::any('confirm_upload', 'MediaController@ConfirmUpload');          // 确认上传封面
    Route::any('videoUpload', 'MediaController@VideoUpload');               // 确认上传视频
    Route::post('mediaUpload', 'MediaController@mediaUpload');              // 视频上传
    Route::any('delmedia', 'MediaController@DelMedia');                     // 视频删除
    Route::any('reasons', 'MediaController@AuditReasons');                  // 审核不通过原因列表
    Route::any('media_recommend', 'MediaController@recommend');             // 推荐视频
    Route::any('media_recommend_list', 'MediaController@recommend_list');   // 推荐视频列表
    Route::any('media_recommend_del', 'MediaController@recommend_del');   // 删除推荐视频

    /** =============================用户管理===================================== */
    Route::any('artnerllist', 'UserController@artnerlLists');               // 用户列表
    Route::any('userdetails', 'UserController@details');                    // 用户详情
    Route::any('Artnerldata', 'UserController@ArtnerlData');                // 搜索用户列表
    Route::any('addartner', 'UserController@Addartnerl');                   // 添加用户（平台添加）
    Route::any('adduser', 'UserController@AddUser');                        // 添加用户（重新创建）
    Route::any('deluser', 'UserController@DelUser');                        // 删除用户
    Route::any('reportuserList', 'UserController@ReportUserList');          // 举报用户列表
    Route::any('reportuser', 'UserController@ReportUser');                  // 举报用户详情

    /** ============================== 系统设置 =================================== */
    Route::any('about', 'SystemController@about');                          // 公司简介
    Route::any('mofifyabout', 'SystemController@UpdateAbout');              // 公司简介修改
    Route::any('applink', 'SystemController@index');                        // APP链接列表
    Route::any('modifylink', 'SystemController@modifylink');                // 修改APP链接
    Route::any('addreport', 'SystemController@addReport');                  // 添加举报栏目
    Route::any('delreport_column', 'SystemController@DelReport');           // 删除举报栏目
    Route::any('movielength', 'SystemController@MovieLength');              // 影片时长
    Route::any('modifymovielength', 'SystemController@mofifyMlength');      // 修改影片时长
    Route::any('binding_list', 'UserController@BindingList');               // 账号绑定列表
    Route::any('binding_account', 'UserController@BindingAccount');         // 账号绑定
    Route::any('search_account', 'UserController@SearchAccount');           // 账号绑定-会员搜索

    /** ================================ 标签管理 ======================================== */
    Route::any('addtags', 'TagsController@AddTags');                        // 添加标签栏目
    Route::any('modifyTags', 'TagsController@ModifyTags');                  // 修改标签栏目
    Route::any('delTags', 'TagsController@DelTags');                        // 删除标签栏目

    /** ================================ 音乐管理 ======================================= */
    Route::any('musicUpload', 'MediaController@MusicUpload');               // 音乐上传
    Route::any('musiclist', 'MediaController@MusicList');                   // 音乐列表
    Route::any('musicenable', 'MediaController@Enable');                    // 音乐启用不启用
    Route::any('delmusic', 'MediaController@DelMusic');                     // 音乐删除
    Route::any('updatesort', 'MediaController@UpdateSort');                 // 音乐修改
    Route::any('musiclistdetails', 'MediaController@MusicListDetails');     // 音乐详情
    Route::any('AddMusictype', 'MediaController@AddMusicType');             // 添加音乐类别
    Route::any('DelMusictype', 'MediaController@DelMusicType');             // 删除音乐类别
    Route::any('musictypedetails', 'MediaController@MusicDetails');         // 音乐类别详情
    Route::any('musictypesorting', 'MediaController@MusicSorting');         // 音乐类别排序修改
    Route::post('add_background_music', 'MediaController@add_background_music');    // 添加模板音乐
    Route::post('modify_background_music', 'MediaController@modify_background_music');    // 修改模板音乐
    Route::post('modify_background_music_status', 'MediaController@modify_background_music_status');    // 修改模板音乐状态
    Route::any('background_music_list', 'MediaController@get_background_music_list');    // 获取模板音乐列表
    Route::any('background_music_info', 'MediaController@get_background_music_info');    // 获取模板音乐详情
    Route::any('MusicSearchLog', 'MusicController@MusicSearchLog');                      // 音乐搜索列表

    /** ================================== 股东管理 ========================================= */
    Route::any('BranchStatistics', 'ManageController@ShareholderCount');    // 股东统计
    Route::any('AdminArtnerllist', 'ManageController@AdminShareholderList');// 后台股东管理列表
    Route::any('SingleShareholder', 'ManageController@SingleShareholder');  // 股东详情
    Route::any('delShareholder', 'ManageController@DelShareholder');        // 删除股东信息
    Route::any('stock_change_list', 'ManageController@Stock_Change_List');        // 股份变更列表
    Route::any('shareholderLgo', 'ManageController@ShareholderLgo');        // 删除股金变更日志
    Route::any('registeredcapital', 'ManageController@RegisteredCapital');  // 删除股金变更日志
    Route::any('shareholderExaminelist', 'ManageController@ShareholderExamine');// 股东审核列表
    Route::post('auditShareholderData', 'ManageController@AuditShareholderData'); // 审核股东资料
    Route::post('auditShareholderFund', 'ManageController@AuditShareholderFund'); // 审核资金到账
    Route::post('auditShareholderStock', 'ManageController@AuditShareholderStock'); // 审核股东股份变更
    Route::any('ShareChangeDetails ', 'ManageController@ShareChangeDetails');  // 股东股份变更详情
    Route::any('editShareholder', 'ManageController@EditShareholder');      // 股东信息修改
    Route::any('AddShareholder', 'ManageController@AddShareholder');        // 添加股东信息
    Route::any('Shareholder_Export', 'ManageController@ShareholderExport'); // 股东导出excel
    Route::any('AuditFailed', 'ManageController@AuditFailed'); // 股东审核不过列表
    Route::any('shareholder_NoDetailsPassed', 'ManageController@NoDetailsPassed'); // 股东审核不过详情
    Route::post('audit_shareholders_alteration', 'ManageController@audit_shareholders_alteration'); // 重新审核股份变更不通过

    /** =====================================会员管理======================================= */
    Route::any('membership_list', 'ManageController@MembershipList');       // 会员列表
    Route::any('addmember', 'ManageController@AddMember');                  // 添加会员
    Route::any('delmember', 'ManageController@DelMember');                  // 删除会员
    Route::any('memberdetails', 'ManageController@MembereDtails');          // 会员列表详情
    Route::any('editmember', 'ManageController@EditMember');                // 修改会员
    Route::any('membership_Export', 'ManageController@MembershipExport');   // 会员导出excel


    /** ========================================分公司管理================================= */
    Route::any('addbranch', 'BranchController@AddBranch');                  // 添加分公司
    Route::any('delbranch', 'BranchController@DelBranch');                  // 删除分公司

    /** ==========================================活动配置 ================================ */
    Route::post("AddActivity", "ActivityController@AddActivity");           // 添加活动配置
    Route::post("EditActivity", "ActivityController@EditActivity");         // 编辑活动配置
    Route::any("GetActivityList", "ActivityController@GetActivityList");    // 获取活动配置列表
    Route::any("GetActivityDetails", "ActivityController@GetActivityDetails"); // 活动配置详情
    Route::any("confirm_upload_activity", "ActivityController@confirm_upload_activity"); // 活动图片上传URL转换
    Route::any("like_static_list", "ActivityController@like_static_list"); // 视频征集活动列表
    Route::any("like_static_details", "ActivityController@like_static_details"); // 视频征集活动列表
    Route::post("like_static_settlement", "ActivityController@like_static_settlement"); // 视频征集活动奖励结算
    Route::any("like_static_settlement_list", "ActivityController@like_static_settlement_list"); // 视频征集榜单奖励结算日志

    Route::any('getActivityInvitationList', 'UserController@GetActivityInvitationList'); // 新人邀请活动列表
    Route::any('getActivityInvitationDetails', 'UserController@GetActivityInvitationDetails'); // 新人邀请活动列表详情

    Route::post('settlement_invite_reward', 'UserController@settlement_invite_reward'); // 结算邀请奖励
    Route::any('settlement_invite_reward_list', 'UserController@settlement_invite_reward_list'); // 结算邀请列表
    Route::any('invite_settlement_collect', 'UserController@invite_settlement_collect'); // 结算汇总列表
    Route::any('settlement_invite_no_reward', 'UserController@settlement_invite_no_reward'); // 未结算列表


    /** ==========================================导航菜单================================ */
    Route::any('NavigationMenu_list', 'JurisdictionControllers@Index');     // 导航菜单列表
    Route::any('AddMenu', 'JurisdictionControllers@AddMenu');               // 添加导航菜单
    Route::any('MenuOperation', 'JurisdictionControllers@MenuOperation');   // 导航菜单操作
    Route::any('MeunDetails', 'JurisdictionControllers@MeunDetails');       // 导航菜单详情
    Route::any('MenuPermissionsList', 'JurisdictionControllers@MenuPermissionsList'); // 导航菜单详情

    /** =========================================短信推送================================= */
    Route::post('add_GroupSMS', 'SystemController@AddGroupSMS');            // 创建群发短信
    Route::any('get_GroupSMSList', 'SystemController@GroupSMSList');        // 群发消息列表
    Route::any('get_GroupSMSInfo', 'SystemController@GroupSMSInfo');        // 获取群发短信明细
    Route::post('edit_GroupSMS', 'SystemController@EditGroupSMS');          // 编辑群发短信
    Route::post('edit_GroupSMSStatus', 'SystemController@EditGroupSMSStatus'); // 开启群发短信

    /** ======================================== 日志管理 ================================ */
    Route::any('logs', 'AdminController@log');                              // 操作日志

    /** ========================================= 账号 ================================= */

    Route::any('index_getToken', 'MediaController@getUploadToken');         // 获取Oss上传token
    Route::any('user_attribution', 'BranchController@UserAttribution');     // 用户归属地
    Route::any('userList', 'UserController@lists');                         // 用户列表


    /** ========================================点赞助手 ===============================+*/
    Route::any('point_sponsor', 'PointSponsorController@index');
    Route::post('add_media_like_config', 'PointSponsorController@add_media_like_config');
    Route::post('modify_media_like_config', 'PointSponsorController@modify_media_like_config');
    Route::post('modify_media_like_config_status', 'PointSponsorController@modify_media_like_config_status');
    Route::post('get_media_like_config_list', 'PointSponsorController@get_media_like_config_list');
    Route::post('get_media_like_config_info', 'PointSponsorController@get_media_like_config_info');

    /** ========================================评论助手 ===============================*/
    Route::post('add_media_comment_config', 'PointSponsorController@add_media_comment_config');
    Route::post('modify_media_comment_config', 'PointSponsorController@modify_media_comment_config');
    Route::post('modify_media_comment_config_status', 'PointSponsorController@modify_media_comment_config_status');
    Route::any('get_media_comment_config_list', 'PointSponsorController@get_media_comment_config_list');
    Route::any('get_media_comment_config_info', 'PointSponsorController@get_media_comment_config_info');
    Route::any('get_media_comment_list', 'PointSponsorController@get_media_comment_list');

    /** ========================================统计 ===============================+*/
    Route::any('operation_statistics','StatisticsController@OperationStatistics');//运营中心统计
    Route::any('operation_number','StatisticsController@NumberAdded'); //人数统计
    Route::any('operation_Money','StatisticsController@AmountMoney'); //钱数统计
    Route::any('newly_active','StatisticsController@NewlyActive'); //新增,活跃统计
    Route::any('newly_user','StatisticsController@UserDaysStatistics'); //用户日统计
    Route::any('newly_user_week','StatisticsController@UserWeekStatistics'); //用户周统计
    Route::any('newly_user_month','StatisticsController@UserMonthStatistics'); //用户月统计
    Route::any('app_download_statistics','StatisticsController@AppDownloadStatistics'); //App下载统计

    /**==================第三方用接口===================================**/
    Route::any('EditMemberMark','ThirdPartyController@EditMemberMark'); //会员表示修改
    Route::any('addmember_third', 'ThirdPartyController@AddMember');                  // 添加会员
    Route::any('delmember_third', 'ThirdPartyController@DelMember');                  // 删除会员
    Route::any('memberdetails_third', 'ThirdPartyController@MembereDtails');          // 会员列表详情
    Route::any('editmember_third', 'ThirdPartyController@EditMember');                // 修改会员

    /***测试****/
    Route::any('testmenu','TestController@Index'); //菜单递归
    Route::any('testuser','TestController@users'); //用户分批查询
    Route::any('usersynchro','TestController@UserSynchro'); //用户分批查询

});
